package sugarbind_input

class Area_Type {

    String area_Type_Name
	
    static constraints = {
			area_Type_Name(blank:false)
			area_Type_Name(unique:true)
	}
	
	static hasMany = [areas: Area]
	
	static mapping = {
//		id column: 'area_type_id'
		id generator: 'sequence', params: [sequence: 'area_type_id_seq']
	}
	
	public String toString(){
		area_Type_Name //+ " " + id
	}
}
